<template>
  <div>
    <el-form :model="form" label-width="120px">
      <el-form-item label="车牌号码：">
        <el-input v-model="form.chepai" />
      </el-form-item>
      <el-form-item label="绑定房产：">
        <el-input v-model="form.fangchan" />
      </el-form-item>
      <el-form-item label="业主姓名：">
        <el-input v-model="form.yezhu" />
      </el-form-item>
      <el-form-item label="车辆类型：">
        <el-input v-model="form.leixing" />
      </el-form-item>
      <!-- <el-form-item label="健康码：">
        <el-select v-model="form.code" placeholder="请选择健康码颜色">
          <el-option label="是" value="红色" />
          <el-option label="黄色" value="黄色" />
          <el-option label="绿色" value="绿色" />
        </el-select>
      </el-form-item> -->
      <!-- <el-form-item label="出入住所：">
        <el-input v-model="form.residence" />
      </el-form-item> -->
      <!-- <el-form-item label="外地返回">
      <el-select v-model="form.return" placeholder="是否外地返回">
        <el-option label="是" value="true" />
        <el-option label="否" value="false" />
      </el-select>
    </el-form-item> -->
      <el-form-item label="新能源：">
        <el-radio-group v-model="form.xinnengyuan">
          <el-radio label="是" />
          <el-radio label="否" />
        </el-radio-group>
      </el-form-item>
      <!-- <el-form-item label="登记人：">
        <el-input v-model="form.registration" />
      </el-form-item> -->
      <!-- <el-form-item label="登记时间：">
        <el-col :span="11">
          <el-date-picker
            v-model="form.date1"
            type="date"
            placeholder="选一个日期"
            style="width: 100%"
          />
        </el-col>
        <el-col :span="2" class="text-center">
          <span class="text-gray-500">-</span>
        </el-col>
        <el-col :span="11">
          <el-time-picker
            v-model="form.date2"
            placeholder="选一个时间"
            style="width: 100%"
          />
        </el-col>
      </el-form-item> -->
      <el-form-item>
        <el-button type="primary" @click="onSubmit">确认</el-button>
        <el-button>取消</el-button>
      </el-form-item>
    </el-form>
  </div>
</template>

<script lang="ts" setup>
import { reactive } from "vue";
import { useRouter } from "vue-router";
// do not use same name with ref
const router = useRouter();
const form = reactive({
  chepai: "", //车牌
  fangchan: "", //房产
  yezhu: "", //业主
  leixing: "", //类型
  xinnengyuan: "", //新能源
});

const onSubmit = () => {
  console.log(form);
  router.push("/epidemicrecord");
};
</script>

<style scoped></style>
